
package cloud.xlh.digital_power_order.config.redis;

import cloud.xlh.infrastructure.BasePropertiesConfig;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@PropertySource("classpath:/xlh_default.properties")
@ConfigurationProperties(
        prefix = "xlh.redis" //yml或者properties文件里面属性的前缀，前缀加具体属性名就对应RabbitProperties 的属性名，值自然而然也会取到
)
@Configuration
@Data
public class MyRedisProperties extends BasePropertiesConfig {
    private String hostName;
    private String port;
    private String password;
    private String database;
}


